package com.ccz.demo.design.factory;

import com.ccz.demo.design.factory.bky.simple.CarFactory;
import com.ccz.demo.design.factory.bky.simple.Factory;
import com.ccz.demo.design.factory.bky.simple.Product;

/**
 * @ClassName Test
 * @Author caihaoyun
 * @Date 2020/7/3
 * @Version V1.0
 **/
public class Test {

    public static void main(String[] args) {
        Factory carFactory = new CarFactory();
        Product car = carFactory.createProduct("汽车");
        car.product();
    }

}
